package com.frxuexi.lib_base.room

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import java.util.Date

@Dao
interface SignDao {

    @Query("select * from sign where date=:date")
    fun selectByDate(date: String):SignEntity

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun addSign(signEntity: SignEntity):Long

    @Update
    fun updateSign(signEntity: SignEntity):Int
}